package com.hlkj.pay.app.merchant.ext.impl.easypay.dto.access;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import java.io.IOException;
/**
 * 终端机具类型
 */
public enum TermModelType {
	THE_02, THE_03, THE_04, THE_05, THE_06, THE_07, THE_08, THE_09, THE_10, THE_11, THE_12, THE_13;
	
	public String toValue() {
		switch (this) {
		case THE_02: return "02";
		case THE_03: return "03";
		case THE_04: return "04";
		case THE_05: return "05";
		case THE_06: return "06";
		case THE_07: return "07";
		case THE_08: return "08";
		case THE_09: return "09";
		case THE_10: return "10";
		case THE_11: return "11";
		case THE_12: return "12";
		case THE_13: return "13";
		}
		return null;
	}
	
	public static TermModelType forValue(String value) throws IOException {
		if (value.equals("02")) return THE_02;
		if (value.equals("03")) return THE_03;
		if (value.equals("04")) return THE_04;
		if (value.equals("05")) return THE_05;
		if (value.equals("06")) return THE_06;
		if (value.equals("07")) return THE_07;
		if (value.equals("08")) return THE_08;
		if (value.equals("09")) return THE_09;
		if (value.equals("10")) return THE_10;
		if (value.equals("11")) return THE_11;
		if (value.equals("12")) return THE_12;
		if (value.equals("13")) return THE_13;
		throw new IOException("Cannot deserialize TermModelType");
	}
}
